/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package org.amse.grigory.dchess.view;

import java.awt.*;
import java.util.*;

/**
 *
 * @author grigory
 */
public class Theme {

    private HashMap<String, Image> myWhiteImg,  myBlackImg;
    private Color[] myColors;
    private Color myIllegalColor,  myFigureColor,  myMoveColor,  myAttackColor,  myIndicationColor;

    public Theme() {
        myWhiteImg = new HashMap<String, Image>();
        myBlackImg = new HashMap<String, Image>();
    }

    public Color getAttackColor() {
        return myAttackColor;
    }

    public void setAttackColor(Color attackColor) {
        myAttackColor = attackColor;
    }

    public Color getFigureColor() {
        return myFigureColor;
    }

    public void setFigureColor(Color figureColor) {
        myFigureColor = figureColor;
    }

    public Color getIllegalColor() {
        return myIllegalColor;
    }

    public void setIllegalColor(Color illegalColor) {
        myIllegalColor = illegalColor;
    }

    public Color getMoveColor() {
        return myMoveColor;
    }

    public void setMoveColor(Color moveColor) {
        myMoveColor = moveColor;
    }

    public Color getIndicationColor() {
        return myIndicationColor;
    }

    public void setIndicationColor(Color indicationColor) {
        myIndicationColor = indicationColor;
    }

    public Color getColor(int i) {
        return myColors[i];
    }

    public void setColor(Color color, int i) {
        myColors[i] = color;
    }

    public void newColors(int n) {
        myColors = new Color[n];
    }

    public int getColorsLength() {
        return myColors.length;
    }

    public void putWhiteImg(String name, Image image) {
        myWhiteImg.put(name, image);
    }

    public void putBlackImg(String name, Image image) {
        myBlackImg.put(name, image);
    }

    public Image getWhiteImg(String name) {
        return myWhiteImg.get(name);
    }

    public Image getBlackImg(String name) {
        return myBlackImg.get(name);
    }
}
